package com.wxzz.elearing.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wxzz.elearing.user.dto.BannerManageDto;
import com.wxzz.elearing.user.entity.BannerManage;
import com.wxzz.elearning.common.vo.ReturnVO;

import java.util.List;

public interface IBannerManageService extends IService<BannerManage> {


    /**
     * 新增banner图
     *
     * @param bannerManage
     * @return
     */
    ReturnVO saveBannerManage(BannerManage bannerManage);

    /**
     * 修改banner图
     *
     * @param bannerManage
     * @return
     */
    ReturnVO updateBannerManage(BannerManage bannerManage);

    /**
     * 删除banner图
     *
     * @return
     */
    ReturnVO deleteBannerManage(Long bannerManageId);

    /**
     * 列出banner
     *
     * @return
     */
    ReturnVO<List<BannerManage>> listBannerManage(Long enterpriseId);

    /**
     * 根据企业模块列出banner(小程序)
     * @param enterpriseId
     * @return
     */
    ReturnVO<List<BannerManage>> listBannerManageByModel(Long enterpriseId, BannerManageDto bannerManageDto);
}
